﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>人员管理</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>	
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="description" content="This is my page">
	<link rel="shortcut icon" href="<%=basePath%>favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/icon.css">
	<script type="text/javascript" src="<%=basePath%>javascript/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/pub.js"></script>
	<script type="text/javascript" src="<%=basePath%>pages/user/js/user.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/easyui_pub.js"></script>
	<style>
		body,html{
			padding:0;
			margin:0;
			height:100%;
		}  
		
		#layout{
			height: 100%;
			width:100%;
			border-top: none;
			border-bottom: none;
		}
   </style>	
   <script>window.onerror=hide_error_message;function hide_error_message(){return true;}</script>
   
  </head>
  <body>
  <div class="easyui-layout" fit="true" id="layout" cellspacing="10">
  <div region="center" fit="true" onmouseover="showScroll()" onmouseout="hideScroll(event,this)"  onselectstart="return false">    
  <div id="grid">
  </div> 
<!-- 增加 -->
		<div style="display: none; padding: 20px;z-index:9999999;" id="addDig">
			<form method="post" id="addForm" name="addForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px;">
					<tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">编码</td>
	                <td bgcolor="#FFFFFF"><input id="addcode" name="F_CODE" validType=checkEmptyCode[]	                 
	                 required="true" missingMessage="必填" maxlength="50" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>
	            </tr>  
	          	<tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">名称</td>
	                 <td bgcolor="#FFFFFF"><input id="txtname" name="F_NAME" validType=checkEmptyName[]
	                  required="true" missingMessage="必填" maxlength="200" class="easyui-validatebox" /><font style="color:#FF0000">*</font></td>
	            </tr>
  	         <!--   <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">密码</td>
	                 <td bgcolor="#FFFFFF"><font style="color:#FF0000">*</font></td>
	            </tr>
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">确认密码</td>
	                 <td bgcolor="#FFFFFF"><input id="txtrepwd" name="F_REPASSWORD" validType=checkEmptyPWD[] maxlength="20" 
	                 style="width:155px;" class="easyui-validatebox" type="password" validType=checkEmptyREPWD[]/><font style="color:#FF0000">*</font></td>
	            </tr>-->
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">电话</td>
	                 <td bgcolor="#FFFFFF"><input id="txtphoneno" name="F_PHONENO" maxlength="16" validType="length[0,16]" class="easyui-numberbox"/></td>
	            </tr>
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">用户类型</td>
	                 <td bgcolor="#FFFFFF">
	                 <input id="addusertype" name="F_USERTYPE" style="width:155px;" required="true" missingMessage="必填"  ><font style="color:#FF0000">*</font>                
	                 </td>
	            </tr>
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">所属单位</td>
	                 <td bgcolor="#FFFFFF">
	                 <input id="addDept" name="F_DEPTID" required="true" missingMessage="必填" style="width:155px;"/><font style="color:#FF0000">*</font>
	                 </td>
	            </tr>    
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">用户组</td>
	                 <td bgcolor="#FFFFFF">
	                 <input id="addUserGroup" name="F_USERGROUPID" style="width:155px;" maxlength="50"/>
	                 </td>
	            </tr>  	             	            	       
				</table>
				<input id="txtSTATE" name="F_STATE" type="hidden" style="display:none;">
			</form>
		</div>
<div style="display: none; padding: 20px;" id="updateDig">
			<form method="post" id="updateForm" name="updateForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px;">
					<tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">编码</td>
	                <td bgcolor="#FFFFFF"><input id="txtcode" name="F_CODE" validType="checkEmptyCode[]" 
	                 required="true" missingMessage="必填" maxlength="50" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>
	            </tr>  
	          	<tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">名称</td>
	                 <td bgcolor="#FFFFFF"><input id="txtname" name="F_NAME" validType="checkEmptyName[]" required="true" 
	                  missingMessage="必填" maxlength="200" class="easyui-validatebox" /><font style="color:#FF0000">*</font></td>
	            </tr>
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">电话</td>
	                 <td bgcolor="#FFFFFF"><input id="editPHONE" name="F_PHONENO" maxlength="16" validType="length[0,16]" class="easyui-numberbox"/></td>
	            </tr>
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">用户类型</td>
	                 <td bgcolor="#FFFFFF">	              
	                 <input id="txtusertype" name="F_USERTYPE" style="width:155px;" required="true" missingMessage="必填" href="javascript:void(0)" ><font style="color:#FF0000">*</font> 
	                 </td>
	            </tr>
	             <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">所属单位</td>
	                 <td bgcolor="#FFFFFF">
	                 <input class="easyui-combotree" id="edtDept" name="F_DEPTID" style="width:155px;"/><font style="color:#FF0000">*</font>
	                 </td>
	            </tr>	 
	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF">用户组</td>
	                 <td bgcolor="#FFFFFF">
	                 <input id="txtusergroup" name="F_USERGROUPID" maxlength="50" style="width:155px;"/>
	                 </td>
	            </tr>	              
	            <tr>        	            	       	            <tr>
	                 <td height="25" align="right" bgcolor="#FFFFFF"></td>
	                 <td bgcolor="#FFFFFF" align="right">
	                 <input type="button" name="InitPwd" id="InitPwd" onClick="initPwd()" value="初始化密码"  />
	                 </td>
	            </tr>
				</table>
				<input id="txtid" name="F_ID" type="hidden" style="display:none;">
				<input id="txtpwd" name="F_PASSWORD" type="hidden" style="display:none;" />
				<input id="txtpwd" name="F_PASSWORD" validType=checkEmptyPWD[] maxlength="20" style="display: none;"
	                 style="width:155px;" class="easyui-validatebox" type="password"/>
			</form>
		</div>
		
		<!--删除 -->
		<div style="display: none; padding: 20px;" >
		<form id="deleteForm" name="deleteForm" method="post">
			<input name="F_ID" id="delId" type="hidden" />
			<input name="F_STATE" id="delState" type="hidden" />
		</form>
		</div>

		<!-- 查询 -->
		<div style="display: none; padding: 20px; font-size:14px;" id="queryDig">
			<form method="post" id="queryForm" name="queryForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px;">
					<tr>
						<td align="right">
							编码
						</td>
						<td>
							<input name="F_CODE" id="code" style="width: 212px;"
								class="easyui-validatebox" />
						</td>
					</tr>
					<tr>
						<td align="right">
							名称
						</td>
						<td>
							<input name="F_NAME" id="name" style="width: 212px;"
								class="easyui-validatebox" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>			
  </body>
</html>
